
//引入公共资源
@import "../base.scss";              //基础样式
@import "../sprites.scss";           //雪碧图样式


//引入页面内部各个小模块的样式
@import "./search.scss";      //搜索框部分样式
@import "./banner.scss";      //轮播区域样式

.no-mr{ margin-right: 0!important; }
.width-960{ width: 960px!important; }
.width-480{ width: 480px!important; }
.width-220{ width: 220px!important; }
.height-210{ height: 210px!important; }
.height-300{ height: 300px!important; }
.height-440{ height: 440px!important; }
.height-140{ height: 140px!important; }

// 以下样式是主体广告的样式，包含 “当季热销”、“国内酒店”、“国际酒店”、“景点门票”、“促销特卖” 等...
//由于各个广告区块样式几乎相同，所以不再细分scss文件，统一写到这里
.ads-main-outer{
    width: 1180px;
    margin: auto;

    @at-root .ads-wrap{
        overflow: hidden;

        @at-root .ads-title-wrap{
            position: relative;
            margin-top: 50px - 10px;
            overflow: hidden;

            @at-root .ads-title-bline{
                width: 1180px;
                border-bottom: 2px solid #aaa;
                position: absolute;
                top: 50px;
                left: 0;
                height: 0;      //在IE7下，一个空div会有一个默认高度
            }

            @at-root .ads-title-item{
                position: relative;
                font-size: 20px;
                padding: 10px;
                margin-right: 20px;
                float: left;
                *zoom: 1;
                cursor: pointer;

                i{
                    display: none;
                    position: absolute;
                    left: 50%;
                    margin-left: -4px;
                    bottom: 0;
                    width: 0;
                    height: 0;
                    overflow: hidden;
                    line-height: 0;
                    font-size: 0;
                    vertical-align: middle;
                    border-bottom: 4px solid #33A6FF;
                    border-top: 0 none;
                    border-left: 4px solid transparent;
                    border-right: 4px solid transparent;
                }
                
                &.current{
                    color: $baseBlue;
                    font-weight: bold;
                    border-bottom: 2px solid $baseBlue;

                    i{
                        display: block;
                    }
                }
            }

            @at-root .ads-more-wrap{
                float: right;
                color: $gray-9;
                margin-top: 17px;
                cursor: pointer;

                >div{
                    float: left;
                    margin-left: 10px;
                }

                .ads-more-icon{
                    @include sprites;
                    @include gengduo;
                    margin-top: 2px;
                }

                &:hover{
                    color: $baseBlue;

                    .ads-more-icon{
                        @include gengduo2;
                    }
                }
            }

        }

        @at-root .ads-inner-wrap{
            margin-top: 14px;
            float: left;
            *zoom: 1;
            overflow: hidden;

            @at-root .ad-one-wrap{
                position: relative;
                width: 220px;
                height: 210px;
                float: left;
                *zoom: 1;
                margin-right: 20px;
                margin-bottom: 20px;
                overflow: hidden;

                &:last-child{
                    margin-right: 0;
                }

                .ad-one-shadow{
                    @include sprites;
                    @include hotel_shadow;
                    position: absolute;
                    bottom: 0;
                    left: 0;
                }

                .ad-one-text{
                    position: absolute;
                    font-size: 16px;
                    height: 35px;
                    line-height: 35px;
                    color: white;
                    bottom: 0;
                    left: 10px;
                }


                //促销热卖的相关样式
                @at-root .ad-mask{
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background: rgba(0,0,0,0.4);
                    filter: progid:DXImageTransform.Microsoft.Gradient(startColorstr='#66000000',endColorstr='#66000000');

                    @at-root .ad-text-above-mask{
                        color: white;
                        margin-left: 10px;

                        .text-1{
                            width: 100px;
                            font-size: 20px;
                            line-height: 40px;
                            margin-bottom: 8px;
                            font-weight: bold;
                            border-bottom: 1px solid white;
                        }
                    }
                }
            }

            @at-root .m-hot-sale-title{
                font-size: 16px;
                margin-top: -4px;
                margin-bottom: 12px;
            }

            @at-root .m-hot-sale-wrap{
                @at-root .m-hot-sale-item{
                    margin-bottom: 10px;
                    width: 220px;
                    overflow: hidden;
                    cursor: pointer;

                    >div{
                        float: left;
                        *zoom: 1;
                    }

                    @at-root .m-hot-sale-img{
                        position: relative;
                        margin-right: 10px;
                        width: 60px;
                        height: 60px;
                        overflow: hidden;

                        @at-root .hot-sales-flag{
                            @include sprites;
                            @include honghua;

                            position: absolute;
                            top: 0;
                            left: 0;

                            @at-root .hot-sales-rank{
                                color: white;
                                text-align: center;
                                line-height: 13px;
                            }
                        }
                    }

                    @at-root .m-hot-sale-text{
                        color: $gray-6;
                        width: 150px;
                        height: 60px;
                    }
                }
            }

        }

        @at-root .ads-sub-title-wrap{
            margin-top: 14px;
            overflow: hidden;

            @at-root .ads-sub-title-item{
                font-size: 14px;
                color: $gray-6;
                padding: 2px 8px;
                margin-right: 15px;
                float: left;
                *zoom: 1;
                cursor: pointer;

                &.current, &:hover{
                    background: $baseBlue;
                    border-radius: 3px;
                    color: white;
                }

            }
        }

    }
}